/*
 * Copyright (C) 2011 JiangHongTiao <jjurco.sk_gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package sk.lieskove301.jianghongtiao.liaad.prisoner.statistics;

import java.util.Iterator;
import java.util.Map;

/**
 * Date of create: May 30, 2011
 *
 * @author JiangHongTiao <jjurco.sk_gmail.com>
 * @version 2011.0530
 */
public class TableStatistics {
    
    public static void printFinal(StatisticStore statistics){
        Map<String, AgentsTimelineUnit> finalA = statistics.getFinalAgents().get(0);
        System.out.println("GeneticInfo\tBornYear\tMemory\tInverted\tOptimistic");
        for (Iterator<String> it = finalA.keySet().iterator(); it.hasNext();) {
            String string = it.next();
            AgentsTimelineUnit atu = finalA.get(string);
            System.out.println(atu.getGeneticInfo()+"\t\t"+atu.getBornYear()+"\t\t"+
                    atu.getMemory()+"\t\t"+atu.isInverted()+"\t\t"+
                    atu.isOptimistic());
        }
    }
    
}
